package cn.jilian.meta.handler.domain;

import java.util.Collection;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;

@JsonInclude(value=JsonInclude.Include.NON_EMPTY)
public class Model {
	
	
	
	private String name;
	
	private String extend;
	
	private String idProperty;
	
	private String clientIdProperty;
	
	private String identifier;
	
	private Object proxy; 
	
	private Collection<Object> fields;
	
	private Map<String,Object> validators;

	public String getExtend() {
		return extend;
	}

	public void setExtend(String extend) {
		this.extend = extend;
	}

	public Object getProxy() {
		return proxy;
	}

	public void setProxy(Object proxy) {
		this.proxy = proxy;
	}

	public Collection<Object> getFields() {
		return fields;
	}

	public void setFields(Collection<Object> fields) {
		this.fields = fields;
	}

	public Map<String, Object> getValidators() {
		return validators;
	}

	public void setValidators(Map<String, Object> validators) {
		this.validators = validators;
	}

	@JsonIgnore
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIdProperty() {
		return idProperty;
	}

	public void setIdProperty(String idProperty) {
		this.idProperty = idProperty;
	}

	public String getClientIdProperty() {
		return clientIdProperty;
	}

	public void setClientIdProperty(String clientIdProperty) {
		this.clientIdProperty = clientIdProperty;
	}

	public String getIdentifier() {
		return identifier;
	}

	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}
	
	

}
